package net.fireox.oa.comm.rtc.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.Table;
import javax.persistence.Transient;

@Entity  
@Inheritance(strategy=InheritanceType.JOINED) 
@Table(name="COMM_RTC_MESSAGE")
public class RTCMessage implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = -5130943871217821641L;

	/**
	 * 短消息主键
	 */
	@Id
	private String msgId;
	
	/**
	 * 短消息类型
	 */
	private String msgType;
	
	/**
	 * 短消息接受人
	 */
	private String reciever;
	
	/**
	 * 短消息发送人
	 */
	private String sendor;
	
	/**
	 * 接受时间
	 */
	private Date recvTime;
	
	/**
	 * 阅读时间
	 */
	private Date readTime;
	
	/**
	 * 是否需要持久化
	 */
	@Transient
	private boolean persistable;
	
	/**
	 * 短消息内容
	 */
	private String msgBody;

	public String getMsgId() {
		return msgId;
	}

	public void setMsgId(String msgId) {
		this.msgId = msgId;
	}

	public String getMsgType() {
		return msgType;
	}

	public void setMsgType(String msgType) {
		this.msgType = msgType;
	}

	public String getReciever() {
		return reciever;
	}

	public void setReciever(String reciever) {
		this.reciever = reciever;
	}

	public String getSendor() {
		return sendor;
	}

	public void setSendor(String sendor) {
		this.sendor = sendor;
	}

	public Date getRecvTime() {
		return recvTime;
	}

	public void setRecvTime(Date recvTime) {
		this.recvTime = recvTime;
	}

	public Date getReadTime() {
		return readTime;
	}

	public void setReadTime(Date readTime) {
		this.readTime = readTime;
	}

	public boolean isPersistable() {
		return persistable;
	}

	public void setPersistable(boolean persistable) {
		this.persistable = persistable;
	}

	public String getMsgBody() {
		return msgBody;
	}

	public void setMsgBody(String msgBody) {
		this.msgBody = msgBody;
	}
}
